package com.neusoft.springdemo.bean;

import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import org.apache.log4j.Logger;

/**
 * 
 * @author chens
 *
 */
public class User {
	private  Logger logger = Logger.getLogger(User.class);
	private int userId;
	private String userName;
	private boolean isMan;
	private Date regDate;
	private List<String> hobbyList;
	private Set<String> majorSet;
	private Map<String, Double> gradeMap;
	private Properties jdbcProperties;
	private int[] ids;

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public boolean isMan() {
		return isMan;
	}

	public void setMan(boolean isMan) {
		this.isMan = isMan;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	public List<String> getHobbyList() {
		return hobbyList;
	}

	public void setHobbyList(List<String> hobbyList) {
		this.hobbyList = hobbyList;
	}

	public Set<String> getMajorSet() {
		return majorSet;
	}

	public void setMajorSet(Set<String> majorSet) {
		this.majorSet = majorSet;
	}

	public Map<String, Double> getGradeMap() {
		return gradeMap;
	}

	public void setGradeMap(Map<String, Double> gradeMap) {
		this.gradeMap = gradeMap;
	}

	public Properties getJdbcProperties() {
		return jdbcProperties;
	}

	public void setJdbcProperties(Properties jdbcProperties) {
		this.jdbcProperties = jdbcProperties;
	}

	public int[] getIds() {
		return ids;
	}

	public void setIds(int[] ids) {
		this.ids = ids;
	}

	public User() {
		super();
		logger.info("User()  。。。。。。。。。。。。。。");
	}

	public User(int userId) {
		super();
		this.userId = userId;
		logger.info("User(int userId) 。。。。。。。。。。。。。。");
	}
	
	
	public User(String userName) {
		super();
		this.userName = userName;
		logger.info("User(String userName)  。。。。。。。。。。。。。。");
	}
	
	
	

	public User(int userId, String userName) {
		super();
		this.userId = userId;
		this.userName = userName;
		logger.info("User(int userId, String userName)   。。。。。。。。。。。。。。");
	}
	
	
	public User( String userName,int userId) {
		super();
		this.userId = userId;
		this.userName = userName;
		logger.info("User( String userName,int userId)   。。。。。。。。。。。。。。");
	}
	
	

	
	public User(int userId, String userName, Date regDate) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.regDate = regDate;
		logger.info("User(int userId, String userName, Date regDate)  。。。。。。。。。。。。。。");
	}

	public User(int userId, String userName, boolean isMan, Date regDate) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.isMan = isMan;
		this.regDate = regDate;
		logger.info("User(int userId, String userName, boolean isMan, Date regDate)------------");
	}

	@Override
	public String toString() {
		return "User [userId=" + userId + ", userName=" + userName + ", isMan=" + isMan + ", regDate=" + regDate
				+ ", hobbyList=" + hobbyList + ", majorSet=" + majorSet + ", gradeMap=" + gradeMap + ", jdbcProperties="
				+ jdbcProperties + ", ids=" + Arrays.toString(ids) + "]";
	}

}
